package com.speechb.modules.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class RedisSessionListener implements HttpSessionListener {
 
    @Override
    public void sessionCreated(HttpSessionEvent event) {
        System.out.println("sessionCreated-->" + event.getSession().getId());
    }
 
    @Override
    public void sessionDestroyed(HttpSessionEvent event) {
        System.out.println("sessionDestroyed-->" + event.getSession().getId());
    }
}